package com.d0323;

public class Course {
    String title;
    int price;

    public Course(String title, int price) {
        this.title = title;
        this.price = price;
    }

    public static void main(String[] args) {
        Course c1 = new Course("math",100);
        Course c2 = new Course("math",100);
        System.out.println(c1==c2);
        System.out.println(c1.equals(c2));
    }
}
